package com.hp.easyBuy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hp.easyBuy.entity.TCart;
import com.hp.easyBuy.entity.DTO.TCartDto;
import com.hp.easyBuy.entity.TOrder;

import java.util.List;

public interface CartService extends IService<TCart> {

    //根据用户id从数据库获取对应的商品列表集合
    public List<TCartDto> getCartList(Long userid);

    //更新购物车商品数量
    public boolean updateCartNum(Long cartid, Long num);

        //添加商品进入用户购物车
    public boolean addCart(Integer goodsid, Long userid);


}
